Skip to content

Conversation

@Stypox
Copy link
Member

@Stypox Stypox commented Aug 14, 2019

This pr changes the way playback state is loaded into lists. Instead of loading all of the states before the list of items is shown, now every item loads its state only when it needs to (i.e. when it becomes visible).
I also did some cleanup of the files I edited.

Testing apk: app-debug.zip
Fixes #2507

Stypox added 7 commits August 14, 2019 11:42
Now the playback state of a stream is loaded only when needed (i.e. when the stream is visible), just as it is done with thumbnails.
Removed `StateObjectsListAdapter.java`, which used to load the state of every stream at list instantiation, generating slowdowns and freezes.
They were probably left behind by accident after a debugging session.
@Stypox Stypox requested a review from Koitharu August 14, 2019 11:19
@theScrabi
Copy link
Member

Works :)

@theScrabi theScrabi merged commit 0dc71ce into TeamNewPipe:dev Aug 14, 2019
This was referenced Aug 17, 2019
@Stypox Stypox deleted the list-slowdown-fix branch September 12, 2019 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduced performance caused by playback position in list views

2 participants